package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预警业务对象 t_warning
 *
 * @author ppgod
 * @date 2024-04-01
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TWarningBo extends BaseEntity {

    /**
     * 
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String pkid;

    /**
     * 预警值
     */
    @NotNull(message = "预警值不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long warningValue;

    /**
     * 实际值
     */
    @NotNull(message = "实际值不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long value;

    /**
     * 车间id
     */
    @NotBlank(message = "车间id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String plantId;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
